package cn.relx.service.domain;

import java.math.BigDecimal;
import java.util.Date;
import cn.relx.basic.domain.BaseDomain;
import cn.relx.pet.domain.PetType;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * <p>
 * 
 * </p>
 *
 * @author relx
 * @since 2022-11-03
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Product extends BaseDomain{

    private static final long serialVersionUID = 1L;

    /**
     * 服务名称
     */
    private String name;
    /**
     * 存放fastdfs地址，多个资源使用，分割
     */
    private String resources;
    /**
     * 售价
     */
    private BigDecimal saleprice;
    /**
     * 下架时间
     */
    private Date offsaletime;
    /**
     * 上架时间
     */
    private Date onsaletime;
    /**
     * 状态：0下架 1上架
     */
    private Long state = 0L;
    /**
     * 成本价
     */
    private String costprice;
    private Date createtime = new Date();
    /**
     * 销售数量
     */
    private Long salecount;


    private String node;

    private ProductDetail detail;

    private PetType petType;


}
